package com.zh.media.domain.dto;

import com.zh.web.base.BaseDto;
import com.zh.web.enums.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "新增回复参数")
public class AddReplyDto extends BaseDto implements Serializable {

    private final static long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论内容 max2000", example = "评论内容")
    @NotEmpty(message = "评论内容不能为空")
    @Size(max = 2000, message = "评论内容最多2000字")
    private String content;
    @ApiModelProperty(value = "作品id", example = "1852649787767091202")
    private Long worksId;
    @ApiModelProperty(value = "评论人id", example = "1840038391900442625")
    private Long userId;
    @ApiModelProperty(value = "父id 默认为0", example = "0")
    private Long pId = 0L;
}
